package menu;

import java.io.*;

/**
 * Created by RuiHaoZ on 2017/11/25.
 */
public class MenuJson {
    public static void main(String[] args) {
        System.out.println(getMenuStr());
    }
    public static String getMenuStr(){
        String path = MenuJson.class.getClassLoader().getResource("").getPath();
        path = "D:\\MobileGroup\\p-book\\MobileGroup_WeChat\\target\\classes\\java.menu.json";
        String fileJson = path;
        System.out.println(fileJson);
        String json = "";
        try {
            BufferedReader br = new BufferedReader(new FileReader(new File(fileJson)));
            while(br.readLine() != null) {
                System.out.println(br.readLine());
                json = json+br.readLine();
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return json;
    }
}
